import request from "@/utils/request";
import { type taskListParams } from '@/views/task/taskList.vue'

export type taskPageResList = {
    id: number
    title: string
    gradeLevel: number
    createUserName: string
    createTime: string
    deleted: boolean
}
export type taskPageRes = {
    total: number
    list: taskPageResList[]
}

export function taskPage(data: taskListParams) {
    return request.post<taskPageRes>('/api/admin/task/page', data)
}